|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
KeyImportCardService The SignatureCardService offers methods to generate and verify a signature as well as key import, verification and generation methods. Many smartcard applications will work with existing keys imported during initialization or personalization instead of importing/generating them at runtime. Thus the functionality for
SignatureCardService,
KeyGenerationCardService| Method Summary | |
boolean |
importAndValidatePrivateKey(PrivateKeyRef destination,
java.security.PrivateKey privateKey,
byte[] keyInfo,
byte[] signature,
PublicKeyRef validationKey)
Import and validate a private key. |
boolean |
importAndValidatePublicKey(PublicKeyRef destination,
java.security.PublicKey key,
byte[] keyInfo,
byte[] signature,
PublicKeyRef validationKey)
Import and validate a public key to the card. |
void |
importPrivateKey(PrivateKeyRef destination,
java.security.PrivateKey key,
byte[] keyInfo)
Import a private key. |
void |
importPublicKey(PublicKeyRef destination,
java.security.PublicKey key,
byte[] keyInfo)
Import a public key to the card. |
| Methods inherited from interface opencard.opt.signature.SignatureCardService |
signData, signData, signHash, signHash, verifySignedData, verifySignedData, verifySignedHash, verifySignedHash |
| Methods inherited from interface opencard.opt.service.CardServiceInterface |
getCard, setCHVDialog |
| Methods inherited from interface opencard.opt.security.SecureService |
provideCredentials |
| Method Detail |
public boolean importAndValidatePrivateKey(PrivateKeyRef destination,
java.security.PrivateKey privateKey,
byte[] keyInfo,
byte[] signature,
PublicKeyRef validationKey)
throws CardServiceException,
java.security.InvalidKeyException,
CardTerminalException
java.security.InvalidKeyException - The key type is not supported by the specific card service.
CardServiceException - any subclass of CardServiceException
CardTerminalException - any subclass of CardTerminalException
public boolean importAndValidatePublicKey(PublicKeyRef destination,
java.security.PublicKey key,
byte[] keyInfo,
byte[] signature,
PublicKeyRef validationKey)
throws CardServiceException,
java.security.InvalidKeyException,
CardTerminalException
java.security.InvalidKeyException - The key type is not supported by the specific card service.
CardServiceException - any subclass of CardServiceException
CardTerminalException - any subclass of CardTerminalException
public void importPrivateKey(PrivateKeyRef destination,
java.security.PrivateKey key,
byte[] keyInfo)
throws CardServiceException,
java.security.InvalidKeyException,
CardTerminalException
java.security.InvalidKeyException - The key type is not supported by the specific card service.
CardServiceException - any subclass of CardServiceException
CardTerminalException - any subclass of CardTerminalException
public void importPublicKey(PublicKeyRef destination,
java.security.PublicKey key,
byte[] keyInfo)
throws CardServiceException,
java.security.InvalidKeyException,
CardTerminalException
java.security.InvalidKeyException - The key type is not supported by the specific card service.
CardServiceException - any subclass of CardServiceException
CardTerminalException - any subclass of CardTerminalException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||